scncfg2b.zip contains

scncfgvw.exe

This is the version 2.1 release of FS2004/FS9/COF scenery config file editor/analyzer for FS9 and FS2k2.

WIN 98 SE users: this analyzer/editor has been tested on WIN XP only.

Version 2.1 displays analysis results in list box using error objects for each error type.

This version has several new features.

Vers. 2.1 has two new Modify functions and unlimited Undo's.

Until the file is buffered, if a file is > 31 Kb, use the MenuBar Edit to do your edits.
If you find you cannot type in the main window, IT IS JUST THAT YOUR FILE IS NOW TOO LARGE FOR THAT WIDGET.

Try using the MODIFY menu to get a more reasonable file for your purposes, such as matching the areas to the layers.
BUT use ANALYZE and fix any errors FIRST.

Version 2.1 exports to a validated XML file which can be used by a variety of tools. It can be the easiest way to find errors on your own especially in

local=some generic dir

where you can use, say, notepad.exe, to search scenery_nn.xml for

some generic dir

even if plagued with many

local=some generic dir\specific sub dir

in the scenery_xx.cfg file that you are analyzing.

When prompted to save the XML file, just cancel to get a FILE Dialog to choose your own destination.

Startup:

When prompted for a file directory, enter a useful directory from which to start: even C:\ is fine.

Navigate to and Open a newly SAVED Copy of an FS9 scenery.cfg file.

WARNING: The [General] block MUST be the first block found in the file. If your file displays areas starting at some seemingly random number, that will be the cause. Exit without saving and make that repair using notepad.exe or whatever.

The bare minimum GENERAL section is

[General]
Clean_on_Exit=TRUE

(or false, as the case may be.)

EDITS:

Before clicking Find, scroll to the top of the text editor and click the REFRESH button.

After doing a Find in the FIND dialog, (i.e. clicking FIND in the Finder Dialog itself) close that Find dialog with its 'X' button to force a scroll to what you are trying to find -if it is there to be found. This is a 'feature' until I debug that dialog code or move to a multi-threaded app. Blame Bill Gates and 'modal' dialogs if you will. I do.

After making any edits in the text editor, scroll to the top of the text editor and click the REFRESH button.

ANALYSIS:

This version of ScnCfg Edit/Analyze automates some repairs after prompting the user for permission.

The ANALYZE button will report any discrepancies found by the logic in this freeware version.

The FIX is disabled in this version.

The Export XML button will prompt you to save to an XML file of your choosing.

Closing the editor will prompt you to save the scn config file or not depending on whether you have made edits or it has made repairs. IF YOU CANCEL YOUR EDITS ARE LOST so please start with a SAVED COPY OF THE FILE wit a harmless name such as 'scenery_031130.cfg'.

We will add improved Save logic as time and neurons permit (warn if editing original; warn if file size indicates truncation is occurring). Your suggestions are welcome.

Our testing indicates that this app will not corrupt a valid scenery.cfg file. THIS CONSTITUTES NO GUARANTEE and your download is not CONSIDERATION where any TORT may be construed to be occasioned by use of this app in your hobby.

CAVEAT:

DO NOT SAVE a file which has a misplaced [GENERAL] section as your file will be truncated.

Contact grshiplett@comcast.net

This app is written in my own commercially licensed version of Dolphin Smalltalk XP 5.